/**
**Filename: CS450Main.c
**Authors: Maxwell Kobe, Jerry Causby, Ryan Gross
**Version: 5
**Last Modified: 12/8/2011
**/

#include <stdio.h>
#include "mpx_supt.h"
#include "R3.H"

int sys_init(int module);
void version();
void displayDate();
void changeDate(int, int, int);
void displayMPX(char*);
void terminateMPX();
int sys_req(int, int, char*, int*);
void commhan();
int sys_open_dir(char dir_name[]);
int sys_get_entry(char name_buf[], int buf_size, long *file_size_p);
int sys_close_dir(void);
void interrupt sys_call();
void load_process(char*, int);

int main()
{
	char array[6] = {"IDLE\0"};
	char* pIDLE = array;
	
	sys_init(MODULE_R4);
	sys_set_vec(sys_call);
	loadProcess();
	load_process(pIDLE, -128);
	dispatch();
	
return 0;
}

void terminateComhan()
{
	terminateMPX();	//exit program and mpx
}